package test.y2020;

import cn.hutool.core.lang.Console;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author song
 * @date 2020/3/24 11:21
 */
public class March5 {
    public static void main(String[] args) {
        String a = "醉柳舞之众星捧月";
        String b = "e";

        final String substring = a.substring(0, 1);

        final int lengthA = a.getBytes().length;
        final int lengthB = b.getBytes().length;
        Console.error(lengthA);
        Console.error(lengthB);

        Console.error(substring);
        final int substringLength = substring.getBytes().length;
        Console.error(substringLength);

        String c = "9";
        Console.error(c.getBytes().length);

    }
}
